package com.lingnan.tijian.controller;

import com.lingnan.tijian.domain.Orders;
import com.lingnan.tijian.dto.ApiResponse;
import com.lingnan.tijian.service.ifac.OverallResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OverallResultController {
    @Autowired
    OverallResultService overallResultService;

    @RequestMapping("listOverallResult")
    public ApiResponse listOverallResult(@RequestBody Orders orders){
        return overallResultService.listOverallResultByOrderId(orders.getOrderId());
    }

}
